package com.party.common.entity;

import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 分页
 * @author mengyangguang
 * @date 2018.9.15 18:01
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class MyPage<T> implements Serializable {
	private static final long serialVersionUID = 6408488020706602312L;
	/**
	 * 当前
	 */
	private Long current;

	/**
	 * 页大小
	 */
	private Integer pageSize;

	/**
	 * 总页数
	 */
	private Long pages;

	/**
	 * 总数据量
	 */
	private long total;

	/**
	 * 数据
	 */
	private List<T> records;

	//总订单数
	private Integer orderCount;

	//已付款订单量
	private Integer payOrderCount;

	//总收入
	private BigDecimal totalAmount;
}
